package ModelLayer;

public class Copy
{
    // instance variables - replace the example below with your own
    
    private int serialNumber;
    private String purchaseDate;
    private String purchasePrice;
    private String state="Returned";
   
    public Copy(int serialNumber,String purchaseDate,String purchasePrice)
     {this.serialNumber=serialNumber;
      this.purchaseDate=purchaseDate;
      this.purchasePrice=purchasePrice;
        
    }
    public void copyBorrow(int serialNumber)
    {if (this.serialNumber==serialNumber) {state="Borrowed";}}
    public void returnBorrow(int serialNumber)
    {if (this.serialNumber==serialNumber) {state="Returned";}}
}
